package com.lanou3g.test;

import com.lanou3g.service.UserService;
import org.springframework.context.support.ClassPathXmlApplicationContext;
//CGLB代理,因为我们的目标类没有实现接口
public class XmlAopTest2 {
    public static void main(String[] args) {
        ClassPathXmlApplicationContext ac = new ClassPathXmlApplicationContext("spring-web.xml");
        UserService userService = ac.getBean(UserService.class);
        System.out.println(userService.getClass());
        userService.add();
    }
}
